package A_SingletonPattern.HungryMode;

/**
 * Created by zc on 2017/3/11.
 */
public class Test {
    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        Singleton instance1 = Singleton.getInstance();
        if (instance == instance1) {
            System.out.println("同一个对象");
        } else {
            System.out.println("不是 同一个对象");
        }
    }
}
